<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ErrorPage.aspx.cs" Inherits="ErrorPage"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title runat="server" meta:resourcekey="litHeader" />
<link href="Styles/errorpage.css" type="text/css" rel="stylesheet" />
</head>
<body class="errorpage">
    <table width="100%" height="100%" cellspacing="0" cellpadding="0">
        <tr>
            <td style="text-align: center; vertical-align: middle;">
                <table width="480" height="200" cellspacing="0" cellpadding="0">
                    <tr height="34">
                        <td class="errorheading" style="font-size: 11px;">
                            <asp:Literal ID="litHeading" runat="server" meta:resourcekey="litHeading"/>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: center; padding-top: 3px;">
                            <table width="442" cellspacing="0" cellpadding="5" style="table-layout: fixed;">
                                <col width="58" />
                                <col />
                                <tr>
                                    <td align="center" style="padding-top: 10px;">
                                        <img runat="server" id="ImageErrorIcon" src="Images/err_success.gif" alt="" /></td>
                                    <td>
                                        <div class="header">
                                            <asp:Label ID="lblErrorTitle" runat="server" meta:resourcekey="lblErrorTitle"/>
                                        </div>
                                        <asp:Label ID="lblErrorText" runat="server" meta:resourcekey="lblErrorText"/>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr height="20">
                        <td class="errorpage_buttons" colspan="2">
                            <button id="btnTryAgain" runat="server" meta:resourcekey="btnTryAgain" onclick="onRetry();"/>
                            &nbsp;
                            <button id="btnBack" runat="server" meta:resourcekey="btnBack" onclick="onClose();"/>
                        </td>
                    </tr>
                </table>
                <br />
                <br />
                <br />
                <br />
                <br />
            </td>
        </tr>
    </table>
</body>
<script type="text/javascript">
var _requestUrl = '<%= Request.QueryString["errorpath"] %>';
function onRetry()
{
    if (_requestUrl == "" || (_requestUrl == window.location.pathname + window.location.search))
    {
        window.location.reload();
    }
    else
    {
        window.location = _requestUrl;
    }
}
function onClose()
{
    top.close();
}
</script>
</html>
